import Menu from '@/components/menu'
import * as React from "react";
import { BrowserRouterProps, Navigate } from 'react-router-dom'
import type { RouteObject } from "react-router-dom";
const Echarts = React.lazy(() => import("@/components/echarts"))

const routes: RouteObject[] = [
  {
    path: '/',
    element: <Navigate to="/home" />
  },
  {
    path: '/home',
    element: <Menu />,
    children: [
      {
        path: '/home/eacharts',
        element: <Echarts />
      }
    ]
  }
]

export default routes